# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python2-mox3
_pkgname=mox3
pkgver=1.0.0
pkgrel=3
pkgdesc='Mock object framework for Python.'
url='https://pypi.org/project/mox3/#files'
arch=('any')
license=('Apache')
depends=('python2' 'python2-pbr' 'python2-fixtures' 'python2-testtools')
makedepends=('python2-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('7b041e5911e060bcc59376d2931abdb7fc4d6cc8548db140539b850d3b6d6c1b23760ce5f43281d077a6eb565774e0efa3cf237f64eb4974da6aa8273b5cf75e')

build() {
  cd "$_pkgname-$pkgver"

  python2 setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python2 setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

